package com.xingchi.tornado.dict.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 字典项添加模型
 *
 * @author xiaoya
 * @date 2025/6/17 14:45
 */
@Data
@Schema(name = "字典项添加模型", description = "字典项添加模型")
public class DictItemEditDTO {

    @Schema(description = "id")
    private Long id;

    @Schema(description = "字典项code")
    @NotBlank(message = "字典项code不能为空")
    private String code;

    @Schema(description = "字典项名称")
    @NotBlank(message = "字典项名称不能为空")
    private String name;

    @Schema(description = "字典项描述")
    private String desc;

    @Schema(description = "字典项排序")
    private Integer sort;

    @Schema(description = "字典项可见性")
    private Integer visible;

}
